<template>
  <div class="i_content">
    <div class="i_zone">
      <div class="zone_header">
        <div class="big_text">
          {{ dataItem.zoneName }}
          <span class="small_text">{{ dataItem.zoneDesc }}</span>
          <div class="fr small_text link_text">更多课程</div>
        </div>
      </div>
      <div class="zone_body">
        <ul class="clearfix course_list">
          <li v-for="(that, int) in dataItem.courseList" :key="int">
            <div class="img_box">
              <!-- <img :src="that.courseLogo" alt="" /> -->
            </div>
            <div class="course">
              <p>{{ that.courseName }}</p>
              <div class="desc">
                <div>
                  <span>上海交大</span>
                  <span>|上海交大</span>
                </div>
                <div>66.6w</div>
              </div>
            </div>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script setup>
import { defineProps } from "vue";

const props = defineProps({
  dataItem: {
    type: Object,
    default: {},
  },
});
</script>
<style scoped lang="less">
.i_content {
  background: #f6f8fb;

  .zone_body {
    margin-top: 25px;
  }

  .i_zone {
    width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
  }
  .zone_header {
    .col_block {
      display: inline-block;
      width: 4px;
      height: 24px;
      background: #333;
      position: relative;
      top: 4px;
    }

    .big_text {
      // text-align: center;
      font-size: 24px;
    }

    .small_text {
      // text-align: center;
      font-size: 14px;
      color: #999;
      margin-top: 10px;
    }

    .link_text:hover {
      text-decoration: none;
      color: #333;
    }
  }
  .course_list {
    li {
      float: left;
      width: 285px;
      height: 222px;
      border-radius: 6px;
      margin: 0px 20px 20px 0px;

      &:nth-child(4n) {
        margin-right: 0px;
      }

      &:hover {
        box-shadow: 0px 3px 18px rgba(0, 0, 0, 0.2);
        transform: translateY(-2px);
        transition: all 0.3s;
      }
      .course {
        padding: 0 10px;
        font-size: 16px;
        margin-top: 5px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        word-break: break-all;
        .desc {
          display: flex;
          align-items: center;
          justify-content: space-between;
          margin-top: 3px;
        }
      }

      .img_box {
        width: 285px;
        height: 158px;
        position: relative;
        background: #999;

        .qizi {
          // background: url(../assets/image/activity/qizi.png) no-repeat
          // center;
          position: absolute;
          top: 0;
          left: 10px;
          width: 46px;
          height: 46px;
          color: #fff;
          font-size: 14px;
          text-align: center;
        }

        img {
          width: 285px;
          height: 158px;
          border-radius: 6px 6px 0 0;
        }

        .live_time {
          position: absolute;
          bottom: 0;
          left: 0;
          font-size: 12px;
          line-height: 16px;
          width: 285px;
          background: rgba(0, 0, 0, 0.2);
          color: #fff;
          padding-bottom: 2px;
        }
      }

      &:hover {
        color: #000;
        text-decoration: none;
      }

      .price_box {
        font-size: 16px;
        position: absolute;
        bottom: 10px;
        left: 10px;
        color: red;
      }
    }
  }

  .test_list {
    .test_option {
      float: left;
      width: 520px;
      padding: 18px 25px;
      margin-right: 55px;
      margin-bottom: 20px;
      border-radius: 8px;
      font-size: 14px;
      background-color: #fff;

      &.right_0 {
        margin-right: 0px;
      }
    }

    .iconfont {
      margin-right: 6px;
    }
  }
}
</style>
